<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
  <head>
    <base href="<%=basePath%>">
    <title>注册页面</title>
    <script src="js/checkdata-admin.js"></script>
   
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <!-- Loading Bootstrap -->
    <link href="${pageContext.request.contextPath }/css/bootstrap.css" rel="stylesheet">

    <!-- Loading Flat UI -->
    <link href="${pageContext.request.contextPath }/css/flat-ui.css" rel="stylesheet">

    <link rel="shortcut icon" href="images/favicon.ico">
    
    <link href="${pageContext.request.contextPath }/css/regist.css" rel="stylesheet">
   
  </head>
  <body>
  <form  action="registerSuccess.action" method="post" name = "myform" onsubmit="return checkdata();">
    <div class="container">
    	<div style="margin-top:5%;" class="form-group">
		    <table>
		    	<tr>
		    		<td>账号:</td>
		    		<td>
		    			<input id="account" name="account" type="text" class="form-control" placeholder="account" onkeypress="EnterPress(event)" onblur="checkUserName(this.value.toLowerCase())"/>
		    		</td>
		    		<td><span id="userNameERR"></span></td>
		    	</tr>
		    	<tr>
		    		<td>密码:</td>
		    		<td>
		    			<input id="PSW" name="pwd" type="password" class="form-control" placeholder="password" onkeypress="EnterPress(event)" onclick="checkUserName2()" onblur="checkPSW(this.value)"/>
		    		</td>
		    		<td><span id="userPSWERR"></span></td>
		    	</tr>
		    	<tr>
		    		<td>确认密码:</td>
		    		<td>
		    			<input id="confirmPSW" name="confirmPSW" type="password" class="form-control" placeholder="confirm password" onkeypress="EnterPress(event)" onblur="checkConfirmPSW(this.value)"/>
		    		</td>
		    		<td><span id="userConfirmPSWERR"></span> </td>
		    	</tr>
		    	<tr>
		    		<td>姓名:</td>
		    		<td>
		    			<input id="name" name="name" type="text" class="form-control" placeholder="username" onkeypress="EnterPress(event)" onblur="checkName(this.value)"/>
		    		</td>
		    		<td><span id="nameERR"></span></td>
		    	</tr>
		    	<tr>
		    		<td>手机号:</td>
		    		<td>
		    			<input id="mobile" name="telNUmber" type="text" class="form-control" placeholder="telephone number" onkeypress="EnterPress(event)" onblur="checkMobile(this.value)"/>
		    		</td>
		    		<td><span id="MobileERR"></span></td>
		    	</tr>
		    	<tr>
		    		<td>邮箱:</td>
		    		<td>
		    			<input id="mail" name="mail" type="text" class="form-control" placeholder="mail" onkeypress="EnterPress(event)" onblur="checkMail(this.value)"/>
		    		</td>
		    		<td><span id="MailERR"></span></td>
		    	</tr>	
		    	<tr>
		    		<td></td>
		    		<td>
		    			<button class="btn btn-primary" type="submit">submit</button>
		    			<button class="btn btn-default" type="reset">reset</button>
		    		</td>
		    	</tr>
		    </table>
	 	</div>
     </div>
   </form>
    <!-- /.container -->


    <!-- Load JS here for greater good =============================-->
    <script src="js/jquery-1.8.3.min.js"></script>
    <script src="js/bootstrap.min.js"></script>


  </body>
</html>
